import { getToken ,setToken,removeToken} from "@/utils/auth"
export default{
  state:{
    token:getToken()
  },
  mutations:{
    setToken(state,token){
      state.token=token
      setToken()
    },
    removeToken(state,token){
      state.token=null
      removeToken()
    }
  },
  actions:{},
  namespaced:true
}